package com.example.sys.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ApiModel(value="SystemUserDTO对象", description="用户DTO")
public class SystemUserDTO {

    @NotBlank(message = "用户登录名不能为空")
    @ApiModelProperty(value = "用户登录名")
    private String loginName;

    @NotBlank(message = "用户密码不能为空")
    @ApiModelProperty(value = "用户密码")
    private String loginPassword;

    @NotBlank(message = "用户名称不能为空")
    @ApiModelProperty(value = "用户名称")
    private String realName;

    @ApiModelProperty(value = "用户邮箱")
    private String email;

    @ApiModelProperty(value = "用户电话")
    private String mobile;

    @NotNull(message = "用户排序不能为空")
    @ApiModelProperty(value = "用户排序")
    private Integer orderBy;

    @NotBlank(message = "账号状态不能为空")
    @ApiModelProperty(value = "账号状态")
    private String accStatus;
}
